//
//  ImageInfo.m
//  Sydeny
//
//  Created by Rainbow on 7/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ImageInfo.h"


@implementation ImageInfo
@synthesize imageId;
@synthesize imageUrl;
@synthesize thumbImagUrl;

- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.imageId forKey:@"imageId"];
	[aCoder encodeObject:self.imageUrl forKey:@"imageUrl"];
	[aCoder encodeObject:self.thumbImagUrl forKey:@"thumbImagUrl"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.imageId = [aDecoder decodeObjectForKey:@"imageId"];
		self.imageUrl = [aDecoder decodeObjectForKey:@"imageUrl"];
		self.thumbImagUrl = [aDecoder decodeObjectForKey:@"thumbImagUrl"];
    }
	return self;
}

-(void)dealloc
{
    [imageId release];
    [imageUrl release];
    [thumbImagUrl release];
    [super dealloc];
}


@end
